<template>
	<view class="content">
		<view class="orderList">
			<!-- 测试订单 -->
			<view class="orderItem" @click="orderClick('cs')">
				<view>测试订单</view>
				<image src="../../static/img/right_icon.png" mode="widthFix"></image>
			</view>
			
			<view class="orderItem" @click="orderClick('zh')">
				<view>组合票订单</view>
				<image src="../../static/img/right_icon.png" mode="widthFix"></image>
			</view>
			<view class="orderItem" @click="orderClick('ggc')">
				<view>观光车订单</view>
				<image src="../../static/img/right_icon.png" mode="widthFix"></image>
			</view>
			<view class="orderItem" @click="orderClick('yl')">
				<view>裕陵订单</view>
				<image src="../../static/img/right_icon.png" mode="widthFix"></image>
			</view>
			<view class="orderItem" @click="orderClick('ddl')">
				<view>定东陵订单</view>
				<image src="../../static/img/right_icon.png" mode="widthFix"></image>
			</view>
			<view class="orderItem" @click="orderClick('jl')">
				<view>景陵订单</view>
				<image src="../../static/img/right_icon.png" mode="widthFix"></image>
			</view>
			<view class="orderItem" @click="orderClick('xl')">
				<view>孝陵订单</view>
				<image src="../../static/img/right_icon.png" mode="widthFix"></image>
			</view>
			
		</view>
			
		
		<view class="tabBar">
			<view class="tabItem" @click="homeClick">
				<image src="../../static/img/home_icon_no.png" mode="heightFix"></image>
				<view>首页</view>
			</view>
			<view class="tabItem">
				<image src="../../static/img/user_icon.png" mode="heightFix"></image>
				<view class="active">我的</view>
			</view>
		</view>
	</view>
	
	
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		onLoad() {
			
		},
		methods: {
			homeClick(){
				uni.redirectTo({
					url: '/pages/index/index'
				})
			},
			orderClick(e){
				let ticketGroupNum;
				if(e=='zh'){
					ticketGroupNum = 'TGN20231228220213019'
				}else if(e == 'ggc'){
					ticketGroupNum = 'TGN20231218083323187'
				}else if(e == 'yl'){
					ticketGroupNum = 'TGN20231218083305399'
				}else if(e == 'ddl'){
					ticketGroupNum = 'TGN20231225095837952'
				}else if(e == 'jl'){
					ticketGroupNum = 'TGN20231225095856919'
				}else if(e == 'xl'){
					ticketGroupNum = 'TGN20231225095917174'
				}else if(e == 'xl'){
					ticketGroupNum = 'TGN20231225095917174'
				}else if(e == 'cs'){
					ticketGroupNum = 'TGN20231225095940727';
				}
				uni.navigateTo({
					url: '/pages/order/orderList?ticketGroupNum=' + ticketGroupNum
				})
			}
		}
	}
</script>

<style>
	.content {
		box-sizing: border-box;
		min-height: 100vh;
		background-color: #f5f5f5;
		padding-bottom: 150rpx;
	}
	
	.orderList{
		box-sizing: border-box;
		padding: 20rpx;
	}
	.orderItem{
		box-sizing: border-box;
		width: 100%;
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 40rpx 20rpx;
		background-color: #fff;
		border-radius: 10rpx;
		box-shadow: 0 0 10rpx #ddd;
		margin-bottom: 20rpx;
		color: #333;
		font-size: 30rpx;
	}
	.orderItem image{
		width: 30rpx;
		height: 30rpx;
	}
</style>
